<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Facelet Title</title>
        <h:outputStylesheet library="css" name="login.css"/>
    </h:head>
    <h:body>

        <div class="main">
            <div class="login-form">
                <h1>Ingreso a Contratista</h1>
                <div class="head">
                    <p:graphicImage value="../resources/images/home-icon-02.png"/>

                </div>
                <h:form id="formInicioSessionEmpresas"> 
                    <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />



                    <p:inputText id="username" 
                                 value="#{empresaLoginController.username}" 
                                 required="true" 
                                 styleClass="text"
                                 label="username">
                        <p:watermark for="username" value="Correo electronico"/>
                    </p:inputText>

                
                    <p:password id="password" 
                                
                                value="#{empresaLoginController.contrasena}" 
                                required="true" 
                                styleClass="password"
                                label="password">
                        <p:watermark for="password" value="Contrasena"/>
                    </p:password>
                    <div class="submit">

                       
                         <p:commandButton value="Iniciar Session"
                                         action="#{empresaLoginController.validaUsuario()}"
                                        
                                         update="password,username"
                                         style=" width:100%; background-color: #ff9900;"/>


                    </div>	
                   
                    <p><a href="ContrasenaOlvidadaEmpresa.xhtml">Has Olvidado Tu Contraseña?</a>
                       
                    </p>
                </h:form>
            </div>

        </div>

    </h:body>
</html>

